package pyx.crazycards.game.managers;

import pyx.crazycards.game.cards.ActionType;
import pyx.crazycards.game.managers.annotation.DataObject;
import pyx.crazycards.game.managers.annotation.Propertie;

/**
 * Represents a action.
 * 
 * @author Abraao Isvi
 * @see ActionType
 */
@DataObject(name = "action", base = "crazy.cards.game")
public class Action{

	@Propertie(name="type")
	private ActionType type;
	
	@Propertie(name="actionValue")
	private Object actionValue;

	public Action() {
	}
	
	public Action(ActionType type, Object actionValue) {
		this.type = type;
		this.actionValue = actionValue;
	}

	public ActionType getType() {
		return type;
	}

	public void setType(ActionType type) {
		this.type = type;
	}

	public Object getActionValue() {
		return actionValue;
	}

	public void setActionValue(Object actionValue) {
		this.actionValue = actionValue;
	}

}
